package com.authService.pojo.req;

import com.authService.enums.PermissionTypeEnum;
import com.xiaopeng.common.enumUtil.EnumView;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 系统权限表
 * </p>
 *
 * @author xiaopeng
 * @since 2024-09-22
 */
@Getter
@Setter
public class PermissionEditReqDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    private Long permissionId;


    @Schema(description = "权限名称")
    private String permsName;

    @Schema(description = "权限码，用于前端控制")
    private String permsCode;

    @Schema(description = "权限类型（1-菜单 2-按钮）")
    @EnumView(PermissionTypeEnum.class)
    private Integer permsType;

    @Schema(description = "接口地址")
    private String path;

}
